MoveMetaData

@Serializable
data class MoveMetaData(val ailment: Handle.Named<MoveAilment>, val category: Handle.Named<MoveCategory>, val minHits: Int?, val maxHits: Int?, val minTurns: Int?, val maxTurns: Int?, val drain: Int, val healing: Int, val critRate: Int, val ailmentChance: Int, val flinchChance: Int, val statChance: Int)(source)

Additional metadata and statistics for a move. See: https://pokeapi.co/docs/v2#movemetadata

Parameters

ailment

The status ailment this move inflicts on its target.

category

The category of move this move falls under, e.g. damage or ailment.

minHits

The minimum number of times this move hits. Null if it always hits once.

maxHits

The maximum number of times this move hits. Null if it always hits once.

minTurns

The minimum number of turns this move continues to take effect. Null if it always lasts one turn.

maxTurns

The maximum number of turns this move continues to take effect. Null if it always lasts one turn.

drain

HP drain (if positive) or Recoil damage (if negative), in percent of damage dealt.

healing

The amount of hp gained by the attacking Pokemon, in percent of it's maximum HP.

critRate

Critical hit rate bonus.

ailmentChance

The likelihood this attack will cause an ailment.

flinchChance

The likelihood this attack will cause the target Pokémon to flinch.

statChance

The likelihood this attack will cause a stat change in the target Pokémon.

Constructors

Link copied to clipboard
constructor(ailment: Handle.Named<MoveAilment>, category: Handle.Named<MoveCategory>, minHits: Int?, maxHits: Int?, minTurns: Int?, maxTurns: Int?, drain: Int, healing: Int, critRate: Int, ailmentChance: Int, flinchChance: Int, statChance: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val drain: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val maxHits: Int?
Link copied to clipboard
Link copied to clipboard
val minHits: Int?
Link copied to clipboard
Link copied to clipboard